﻿using System;
using oModbus.Message;

namespace oModbus.Device
{

    /// <summary>
    /// 传输驱动驱动
    /// </summary>
    public interface ITransmission
    {
        /// <summary>
        /// 接受消息事件
        /// </summary>
        event Action<byte[]> ReceivedMessageEvent;
        bool Send(byte[] buffer);
        bool Send(AbstractModbusMessage message);
        void Close();
        bool Open();
    }
}
